Repository navigation
Dedup uploads per component instead of by TEA product PURL - #20
Merged
vpetersson merged 1 commit intoNov 23, 2026
Merged
Conversation
The upload check for github_release and lockfile apps looked up urn:tei:purl:library.sbomify.com:pkg:github/<repo>@<version> on TEA. That TEI resolves to the product release, not to the component, so once one component of a product had uploaded a version, every other component of that product release looked "already published" and was skipped: - keycloak and keycloak-js share pkg:github/keycloak/keycloak, so the Keycloak 26.8.2 release only has the backend SBOM. - dependency-track-frontend creates the 5.2.2 release of the bundle product, whose PURL is the backend's, so the backend was never uploaded. Use the per-component sbomify check that docker/chainguard apps already use for every source type, keyed on the component version (image digest for container sources, config version otherwise). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
For
github_releaseandlockfileapps, the builder decided whether to upload by looking upurn:tei:purl:library.sbomify.com:pkg:github/<repo>@<version>on TEA. That TEI resolves to the product release, not to the component. Once one component of a product had uploaded a version, every other component of that product release looked "already published" and its upload was skipped. That also meant it was never attached to the release.This is what TEA shows today:
keycloakandkeycloak-jsboth build fromkeycloak/keycloak, so they share one PURL.dependency-track-frontendcreates the bundle's 5.2.2 release, and the bundle's PURL is the backend's (pkg:github/DependencyTrack/dependency-track). The backend run then skips its upload.Fix
All source types now use the per-component sbomify check that docker/chainguard apps already relied on (
sbomify_digest_exists, renamed tosbomify_version_exists). It is keyed on the component version: the image digest for container sources and the config version otherwise. The change is made in bothsbom-builder.ymlandscripts/run.sh, and it removes the TEA lookup along with theuvsetup that existed only for that lookup.Testing
shellcheck -x -S warning scripts/*.sh scripts/*/*.shandyamllint .both pass.tea-cli inspect. The other single-component lockfile/GitHub-release products (caddy, trivy, osv-scanner, syft) and the docker products I sampled are complete.After merge
Changing the builder does not trigger the per-app workflows. Dispatch SBOM: keycloak-js and SBOM: dependency-track once so the missing SBOMs are uploaded and attached to their 26.8.2 / 5.2.2 releases.
🤖 Generated with Claude Code